Socket
Socket
Sign inDemoInstall

hexoid

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexoid

A tiny (190B) and extremely fast utility to generate random IDs of fixed length


Version published
Weekly downloads
6.2M
decreased by-1.11%
Maintainers
1
Weekly downloads
 
Created

What is hexoid?

The hexoid npm package is a small, fast library for generating unique hex string IDs. It is designed to be efficient and provides a simple API for generating random or sequential hex strings that can be used for unique identifiers in various applications.

What are hexoid's main functionalities?

Generate random hex string IDs

This feature allows you to generate random hex string IDs. The code sample shows how to import the hexoid package, create a generator function, and then log a new unique hex string ID to the console.

"use strict"; const hexoid = require('hexoid'); const generateId = hexoid(); console.log(generateId());

Generate custom length hex string IDs

This feature allows you to specify the length of the hex string ID. In the code sample, a 16-character hex string ID is generated.

"use strict"; const hexoid = require('hexoid'); const generateId = hexoid(16); console.log(generateId());

Other packages similar to hexoid

Keywords

FAQs

Package last updated on 10 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc